package com.slw.caiji.controller;

import io.swagger.annotations.Api;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "获取当前环境")
public class EnvironmentInfo {

    @Value("${name}")
    private String name;

    @GetMapping("api/getEnvironment")
    @Operation(summary = "获取当前环境名称", description = "获取当前环境名称")
    public String index() {
        return name;
    }
}
